-- GENERATED SPELL FOR [Gammothra the Tormentor] --


function spell0_25789(pUnit, Event) --@Magnataur Charge,Self--
pUnit:FullCastSpellOnTarget(50413,pUnit)
pUnit:RegisterEvent('Sorts_25789', 10274, 1)
end

function spell1_25789(pUnit, Event) --@Tusk Strike,n/a--
pUnit:FullCastSpellOnTarget(50410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25789', 593, 1)
end

function Sorts_25789(pUnit, Event)
local choix_sorts_25789 = math.random(0, 1)
if choix_sorts_25789 == 0 then
pUnit:RegisterEvent('spell0_25789', 1, 1)
end
if choix_sorts_25789 == 1 then
pUnit:RegisterEvent('spell1_25789', 1, 1)
end
end

function mob25789_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25789', math.random(1500, 3000), 1)
end

function mob25789_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25789_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25789_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25789, 1, 'mob25789_Action')
RegisterUnitEvent(25789, 2, 'mob25789_Leave')
RegisterUnitEvent(25789, 3, 'mob25789_Kill')
RegisterUnitEvent(25789, 4, 'mob25789_Die')
